import { defineStore } from 'pinia'

export const useDialogDataStore = defineStore({
  id: 'dialogData',
  state: () => {
    return {
      title: null,
      status: false,
      devNo: null,
      qtStatus: false,
      qbTitle: null,
      qbStatus: false,
      atTitle: null,
      atStatus: false,
      psTitle: null,
      psStatus: false,
      uiStatus: false,
      // index: null,
    }
  },
  actions: {},
  persist: {
    enabled: true,
    // keys: ['title', 'status'],
    encryptionKey: 'dialogData',
    strategies: [
      {
        key: 'dialogData',
        storage: sessionStorage,
      },
    ],
  },
})
